package com.keyancompany.zhongbaopingtai.weight;

import android.content.Context;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;

import com.keyancompany.zhongbaopingtai.R;
import com.keyancompany.zhongbaopingtai.adapter.IndexTeamAdapter;
import com.keyancompany.zhongbaopingtai.utils.ScreenUtils;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * Created by firefox on 2016/8/13.
 */
public class CreateTeamPopup extends MenuPopuWindow {

    @Bind(R.id.create_ok)
    TextView createOk;
    @Bind(R.id.create_cancel)
    TextView createCancel;

    public CreateTeamPopup(Context context) {
        super(context);
    }


    @Override
    public void setUpViews() {

    }

    @Override
    public void setUpListener() {

    }

    @OnClick({R.id.create_cancel, R.id.create_ok})
    public void itemClick(View view) {
        if (cliclSureListener != null)
            cliclSureListener.clickSureLinstener(view.getId() == R.id.create_ok ? "ok" : "cancel");
    }

    @Override
    public int getAnimationStyle() {
        return 0;
    }

    @Override
    public int getResView() {
        return R.layout.popup_create_team;
    }

    @Override
    public void updateView(View contentView) {
        setWidth(ScreenUtils.getScreenWidth(context) * 2 / 3);
    }
}
